package com.yidu.qianfeng.signfor;

import com.yidu.qianfeng.common.bean.transport.TrackWaybill;
import com.yidu.qianfeng.mapper.SubstationMapper;
import com.yidu.qianfeng.mapper.TrackWaybillMapper;
import com.yidu.qianfeng.mapper.WaybillMapper;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: 张磊
 * @Description:
 * @Date Created in 9:29 2021/4/21
 * @since 1.0
 */
public class SignforService {

    @Resource(name = "trackWaybillMapper")
    private TrackWaybillMapper trackWaybillMapper;

    @Resource(name = "waybillMapper")
    private WaybillMapper waybillMapper;

    @Resource(name = "substationMapper")
    private SubstationMapper substationMapper;

    /**
     * 查询已签收的运单信息
     * @param page 页面
     * @param limit 页目
     * @return
     */
    public List<TrackWaybill> selectSignforPaing(int page, int limit) {

        return trackWaybillMapper.selectSignforPaing(page,limit);
    }

    /**
     * 查询已签收的运单信息
     * @return
     */
    public int selectSignforCount() {

        return trackWaybillMapper.selectSignforCount();
    }

    /**
     * 根据托运单号查询数据
     * @param trackConsignNum 托运单号
     * @return 结果对象
     */
    public List<TrackWaybill> bytrackConsignNumSelect(String trackConsignNum) {

        return trackWaybillMapper.bytrackConsignNumSelect(trackConsignNum);
    }

}
